package com.zoey.arithmetic.exp;

import com.google.common.collect.Lists;
import org.checkerframework.checker.nullness.qual.Nullable;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description 查询树中的依赖关系
 * @Author GanShaoXi
 * @ClassName MoreTreeQuery
 * @Return com.zoey.arithmetic.exp
 * @Since 1.0.0
 * @Created on 2023/7/12 10:46
 */
public class MoreTreeQuery {
    public static void main(String[] args) {

    }

    public List<MockData> constructData() {
        List<MockData> list = Lists.newArrayList();
        MockData mockData = new MockData();
        mockData.setMockId(20001L);
        mockData.datas.add(new Data(10001L, "aaaa"));
        mockData.datas.add(new Data(10002L, "bbbb"));
        mockData.datas.add(new Data(10003L, "cccc"));
        MockData mockData2 = new MockData();
        mockData2.setMockId(20002L);
        mockData2.datas.add(new Data(10004L, "dddd"));
        mockData2.datas.add(new Data(10005L, "eeee"));
        mockData2.datas.add(new Data(10006L, "ffff"));
        MockData mockData3 = new MockData();
        mockData3.setMockId(20003L);
        mockData3.datas.add(new Data(10007L, "gggg"));
        mockData3.datas.add(new Data(10008L, "hhhh"));
        mockData3.datas.add(new Data(20001L, "aaaa"));

        return list;
    }

}

@lombok.Data
@lombok.AllArgsConstructor
@lombok.NoArgsConstructor
class MockData {
    public Long mockId;
    public List<Data> datas = Lists.newArrayList();
}

@lombok.Data
@lombok.AllArgsConstructor
class Data {
    public Long dataId;
    public String dataName;
}